import 'dart:convert';

import 'package:largefriends/entity/json/json_parse_utils.dart';

class VerifyEmailEntity {
  VerifyEmailEntity({
    this.key,
  });

  factory VerifyEmailEntity.fromJson(Map<String, dynamic> jsonRes) =>
      VerifyEmailEntity(
        key: jsonRes.asString('key'),
      );

  String? key;

  @override
  String toString() {
    return jsonEncode(this);
  }

  Map<String, dynamic> toJson() => <String, dynamic>{
        'key': key,
      };
}
